import http from '@/api/http'

// get yzm
const getYzm = (data) => {
    return http({
        url: "user/postmail",
        method: "get",
        params:data
    })
}

// register
const userRegister = (data) => {
    return http({
        url: "user/register",
        method: "post",
        data
    })
}

// login
const userLogin = (data) => {
    return http({
        url: "user/login",
        method: "get",
        params:data
    })
}

// updata user_header_img

const updataUserHeader = (data) => {
    return http({
        url: "user/updataUserHeader",
        method: "post",
        data
    })
}


// 获取院校结构
const getStructure = (data) => {
    return http({
        url: "work/structure",
        method: "get",
        params: data
    })
}


















// 获取全部的就业学员的表格
const getallStudentForm = (data) => {
    return http({
        url: "work/getallStudentForm",
        method: "get",
        params: data,
    })
}



// 获取echarts数据
const filterEcharts = (data) => {
    return http({
        url: "work/echarts",
        method: "get",
        params: data,
    })
}


// 获取毕业学历结构百分比
const sendEchartsStructure = (data) => {
    return http({
        url: "work/echartsstructure",
        method: "get",
        params: data
    })
}


// 获取性别下的毕业学历结构
// const sendSexstract = (data) => {
//     return http({
//         url: "work/sexstract",
//         method: "get",
//         params: data
//     })
// }

const filterStudentForms = (data) => {
    return http({
        url: "work/filterStudentForms",
        method: "get",
        params: data,
    })
}








export {
    getYzm,
    userRegister,
    userLogin,
    updataUserHeader,
    getallStudentForm,
    filterStudentForms,
    filterEcharts,
    getStructure,
    sendEchartsStructure
}
